# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=suwidgets
_pkgname=SuWidgets
pkgver=0.3.0
pkgrel=1
pkgdesc='Sigutils-related widgets'
arch=('loong64' 'x86_64')
url='https://github.com/BatchDrake/SuWidgets'
license=('GPL3')
depends=('qt5-base' 'sigutils')
makedepends=('qt5-tools')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('af6c378594e324587efabd72163d0715779ed53536aa0c02a8a1b39e0c2d8c6c991205a37f1f0dc75da03b8b0cb05a4a800fec631b6878568287fd6d1e46c47c')

build() {
  mkdir $_pkgname-$pkgver/build
  cd $_pkgname-$pkgver/build

  qmake PREFIX=/usr ../SuWidgets.pro

  make
}

package() {
  cd $_pkgname-$pkgver/build

  make INSTALL_ROOT="$pkgdir" install
}
